package com.thoughtworks.preuniversity.biblioteca;

/**
 * Created by padmavb on 6/20/14.
 */
public class LogOut extends MenuOperation{

    private String jobOfClass;
    Application application;
    public LogOut(String jobOfClass, Application application) {

        this.jobOfClass=jobOfClass;
        this.application=application;
    }

    @Override
    void doCorrespondingOperation(Library library) {

        application.loginOrNot();
    }

    @Override
    String giveJobOfClass() {
        return "Log Out";
    }
}
